'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const {
    router,
    controller,
  } = app;
  router.get('/', controller.home.index);
  router.get('/hello', controller.home.data);
  router.post('/postData', controller.home.postData);
  router.get('/getBook', controller.home.getBook);
  router.get('/getLunbo', controller.home.getLunbo);
  // router.get('/getGoodList', controller.home.getGoodList);
  router.get('/getGoodItem', controller.home.getGoodItem);
  router.get('/getMoreDetail', controller.home.getMoreDetail);
  router.get('/getImage', controller.blog.getImage);
};